home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Toolbox / IconUtilCheck / IconUtilCheck Read Me next >
Encoding:
Text File  |  1996-09-17  |  963 b   |  21 lines  |  [TEXT/CWIE]

  1. According to the Tech Note OV - 16, "Inside Macintosh: More Macintosh 
  2.     Toolbox, page 5-7, specifies that the gestaltIconUtilitiesAttr - 'icon'
  3.     gestalt selector can be used to determine whether the icon utilities
  4.     are present under System 7.x.   Note that this selector is included in
  5.     the GestaltEqu files.  It turns out that this selector is not
  6.     implemented until System Software v7.1.2.  To check for the existence of
  7.     these utilities, use the TrapAvailable code to check for the 
  8.     _IconDispatch, (0xABC9) trap.  The TrapAvailable code is presented in
  9.     Inside Macintosh VI 3-8, and as sample code in many of the snippets
  10.     on the Developer CD."
  11.  
  12.     This snippet shows how to determine whether the Icon Utilities
  13.     are available.
  14.         
  15.     Written by Virginia (Ginny) McCulloh
  16.     Apple Developer Technical Support
  17.     August 1995, Cupertino, CA
  18.     Copyright 1995, Apple Computer, Inc.
  19.  
  20.     This runs under Think C 7.0.4, CodeWarrior 6,
  21.      and MPW 3.3.1 with the Universal Headers.